/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/08
\**********************/
#ifndef __SD_CONVERT_H__
#define __SD_CONVERT_H__
#pragma once

#include <string>

namespace DuiLib {

typedef std::string  SDString;
typedef std::wstring SDWString;
#ifdef _UNICODE
#   define SDTString SDWString
#   define SDTChar wchar_t
#else
#   define SDTString SDString
#   define SDTChar char
#endif

class UILIB_API SDConvert
{
public:
    static SDString  WToA(SDWString str);
    static SDWString AToW(SDString str);
    static SDWString UToW(SDString str);
    static SDString  WToU(SDWString str);
    static SDString  AToU(SDString str);
    static SDString  UToA(SDString str);

    static SDTString UToT(SDString str);
    static SDTString AToT(SDString str);
    static SDTString WToT(SDWString str);

    static SDString  TToU(SDTString str);
    static SDString  TToA(SDTString str);
    static SDWString TToW(SDTString str);
};

}
#endif //__SD_CONVERT_H__